import 'package:flutter/widgets.dart';
import 'package:x3_base_core/base_models/base_http_response_model.dart';

/// 实现动态组件路由的要实现这个接口 -- 根据出参来构建Widgets
abstract class BaseCatalogResponse<T> {

  /// 返回动态组件数组
  Map<T, Widget Function(BaseHttpResponseModel response, dynamic dataSource)> catalog();

}
